
import 'package:flutter/material.dart';

class PageHome extends StatefulWidget {
  const PageHome({Key? key}) : super(key: key);

  @override
  _PageHomeState createState() => _PageHomeState();
}

class _PageHomeState extends State<PageHome> {
  @override
  Widget build(BuildContext context) {
    return ElevatedButton(onPressed: () {

      Navigator.of(context).push(
        MaterialPageRoute(builder: (context) {
            return PageHome();
        })
      );

    }, child: Text('按钮'));
  }
}
